home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 3
/
Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso
/
comms
/
netsoftware
/
archie38_1.lha
/
archie-1.4
/
SMakefile
< prev
next >
Wrap
Makefile
|
1995-01-05
|
7KB
|
166 lines
# SAS/C-style (S)makefile
# Tomas Willis
# mods for Amiga
# I built this with SAS/C 6.51 and the AmiTCP 2.2 developer kit
# Amiga port by Tomas Willis (tomas@cae.wisc.edu) January 1995
#
# Makefile for the minimal build for an archie Prospero client.
#
# Your C compiler: SAS/C 6.51
CC=sc
# For most systems, these OPTIONS will suffice. Exceptions:
#
# * If you're on a Stardent, add -43
# * If you're running EP/IX, you may need to add -systype bsd43
# but try it without it first.
#OPTIONS= -O -I. -I/usr/netinclude -I/usr/ucbinclude
OPTIONS=OPT IDIR=""
# For this, DEFINES is usually ok as-is. Try it without any of these
# first; if some stuff fails or shows up undefined, then come back and
# add 'em. Also please drop me a line if you had to add anything...ideally
# things will reach a point where this whole section will be unnecessary.
#
# * if you want to include the debugging code (so you
# can help with problem-solving if any crop up), add -DDEBUG
# * if you're running Interactive Unix, add -DISC
# * if you're running System V, add -DSYSV
# * if you're running a USG (System V.2) system, add -DUSG
# * if you're running UTS, add -DUTS
# * if your system doesn't have the functions index(),
# rindex(), bcopy(), or bzero(), add -DFUNCS
# * if your system is missing the getenv(3) routine, add -DGETENV
# * if your system doesn't have the re_comp/regcmp or re_exec/regex
# routines (no regex(3)/regcmp(3X) library), then add -DNOREGEX
# * if your system is lacking strspn(), add -DSTRSPN
DEFINES= DEF=DEBUG DEF=AMIGA DEF=NEED_STRING_H DEF=NEED_TIME_H \
DEF=WANT_BOTH_TIME DEF=NOREGEX
# The default Archie server; choose one of:
# archie.au 139.130.4.6 Australia
# archie.edvz.uni-linz.ac.at 140.78.3.8 Austria
# archie.univie.ac.at 131.130.1.23 Austria
# archie.cs.mcgill.ca 132.206.51.250 Canada
# archie.uqam.ca 132.208.250.10 Canada
# archie.funet.fi 128.214.6.102 Finland
# archie.univ-rennes1.fr 129.20.128.38 France
# archie.th-darmstadt.de 130.83.128.118 Germany
# archie.ac.il 132.65.16.18 Israel
# archie.unipi.it 131.114.21.10 Italy
# archie.wide.ad.jp 133.4.3.6 Japan
# archie.hana.nm.kr 128.134.1.1 Korea
# archie.sogang.ac.kr 163.239.1.11 Korea
# archie.uninett.no 128.39.2.20 Norway
# archie.rediris.es 130.206.1.2 Spain
# archie.luth.se 130.240.12.30 Sweden
# archie.switch.ch 130.59.1.40 Switzerland
# archie.nctuccca.edu.tw 192.83.166.10 Taiwan
# archie.ncu.edu.tw 192.83.166.12 Taiwan
# archie.doc.ic.ac.uk 146.169.11.3 United Kingdom
# archie.hensa.ac.uk 129.12.21.25 United Kingdom
# archie.unl.edu 129.93.1.14 USA (NE)
# archie.internic.net 198.49.45.10 USA (NJ)
# archie.rutgers.edu 128.6.18.15 USA (NJ)
# archie.ans.net 147.225.1.10 USA (NY)
# archie.sura.net 128.167.254.179 USA (MD)
#
# Note this only applies to the command-line client; to change the
# default for the Emacs lisp version, set the archie-server variable.
ARCHIE= archie.internic.net
# Usually LDFLAGS is empty; if, after you build this, archie
# complains that it can't resolve ARCHIE.ANS.NET (or whatever
# you defined ARCHIE_HOST as), you need to add `-lresolv'.
#
# * If you need the PW library (e.g. A/UX), add -lPW
LDFLAGS=lib=lib:net.lib
# If you're using ISC, use:
#LDFLAGS= -linet
# If you're using Wallongong TCP/IP on an AT&T box, use:
#LDFLAGS= -lnet -lnsl_s
# If you're using UTS, use:
#LDFLAGS= -lsocket
# If you're using System V Release 4, use:
#LDFLAGS= -L/usr/ucblib -lucb -lsockdns -lnsl
# If you're using Solaris 2.0, use:
#LDFLAGS= -lnsl -lsocket -L/usr/ucblib -lucb
# If you're using Consensus SVR4, use:
#LDFLAGS= -lnsl_i -lsocket -lucb
# If you're using Dynix/PTX, use:
#LDFLAGS= -lsocket -linet -lnsl -lPW
# Change this if necessary.
RM=delete
# =========================
# Yer' done....make archie.
# =========================
#
CFLAGS=$(OPTIONS) $(DEFINES) DEF=ARCHIE_HOST="$(ARCHIE)"
VERSION=1.4
VMS_VERSION=`echo $(VERSION) | sed -e 's,\\.,_,g'`
OBJS= archie.o aquery.o atalloc.o dirsend.o get_pauth.o get_vdir.o \
perrmesg.o procquery.o ptalloc.o regex.o stcopy.o support.o \
vlalloc.o vl_comp.o amiga/getpid.o amiga/getuid.o
GETOPTOBJS = getopt.o getopt1.o
#getopts () provided in the AmiTCP socket stuff
SRCS=aquery.c archie.c atalloc.c dirsend.c get_pauth.c get_vdir.c \
getopt.c getopt1.c \
perrmesg.c procquery.c ptalloc.c regex.c stcopy.c support.c \
vlalloc.c vl_comp.c amiga/getpid.c amiga/getuid.c
all: archie
archie: $(OBJS)
SLINK FROM lib:c.o $(OBJS) \
to archie \
LIB lib:net.lib lib:sc.lib LIB:amiga.lib\
VERBOSE
# $(CC) $(CFLAGS) $@ LINK $(OBJS) $(LDFLAGS)
# $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
.c.o: archie.h copyright.h pmachine.h pcompat.h Makefile $(SRCS)
$(CC) $(CFLAGS) $<
clean:
$(RM) #?.o archie archie.doc
FILES= INSTALL Makefile Prospero README README.ALEX README.dos archie.c \
archie.h archie.el archie.lnk archie.doc archie.man aquery.c \
atalloc.c dirsend.c get_pauth.c get_vdir.c \
getopt.c getopt.h getopt1.c \
make.com makefile.cut makefile.dos makefile.os2 makefile.nfs \
msdos/cutcp.h msdos/hostform.h msdos/netevent.h pc-archie.nfs \
perrmesg.c patchlevel.h pauthent.h pcompat.h perrno.h pfs.h pmachine.h \
pprot.h procquery.c ptalloc.c rdgram.h regex.c regex.h stcopy.c \
support.c copyright.h vl_comp.c vlalloc.c vms.h vms_support.c \
vms/fd.h vms/in.h vms/pseudos.h vms/signal.h vms/socket.h vms/time.h \
vms/types.h vms/network.h vms/multi.opt vms/ucx.opt vms/woll.opt\
amiga/getuid.c amiga/getpid.c
#archie.doc: archie.man
# nroff -man archie.man | tr '\010' _ | sed -e s/__//g > archie.doc
#dcl: archie.doc
# if [ ! -d archie$(VMS_VERSION)/ ]; then ln -s . archie$(VMS_VERSION); fi
# echo '$$ write sys$$output "Unpacking..."' > archie$(VMS_VERSION).com
# echo '$$ if f$$search("archie.dir") .eqs. "" then create/dir [.ARCHIE]' >> archie$(VMS_VERSION).com
# echo '$$ if f$$search("[.ARCHIE]vms.dir") .eqs. "" then create/dir [.ARCHIE.VMS]' >> archie$(VMS_VERSION).com
# echo '$$ if f$$search("[.ARCHIE]msdos.dir") .eqs. "" then create/dir [.ARCHIE.MSDOS]' >> archie$(VMS_VERSION).com
# echo '$$ set noverify' >> archie$(VMS_VERSION).com
# dclshar `echo "$(FILES)" | tr ' ' '\012' | \
# sed -e "s/^/archie\//g"` >> archie$(VMS_VERSION).com
# echo '$$ write sys$$output "Ok, now enter the ARCHIE directory, look at MAKE.COM, then type @MAKE ."' >> archie$(VMS_VERSION).com
#tar: archie.doc
# if [ ! -d archie-$(VERSION)/ ]; then ln -s . archie-$(VERSION); fi
# tar cvf archie-$(VERSION).tar `echo $(FILES) |\
# tr ' ' '\012' | sed -e "s/^/archie-$(VERSION)\//g"`
# compress -f archie-$(VERSION).tar